#include "Bone.h"

namespace askal
{

	Bone::Bone(const char* name, Bone *parent)
	{
		 mName = name;
		 mParent = parent;
	}
	
	bool Bone::isChild(chstr name)
	{
		return (mParent->mName == name);
	}
	
	chstr Bone::getName()
	{
		return mName;
	}
	
	void Bone::setParentBone(Bone *bone)
	{
		mParent = bone;
	}
	
	void Bone::addChildBone(Bone *bone)
	{
		mChildren.push_back(bone);
	}
	
	void Bone::setName(chstr newName)
	{
		mName = hstr(newName);
	}
	
}